import { request } from '@pkg/request/src';

export enum Api {
  page = '/userGoodsGenerateInfo/page',
  get = '/userGoodsGenerateInfo/get',
  add = '/userGoodsGenerateInfo/save',
  update = '/userGoodsGenerateInfo/update',
  remove = '/userGoodsGenerateInfo/remove',
  delay = '/userGoodsGenerateInfo/delay',
}

export const delay = params =>
  request.post(
    {
      url: Api.delay,
      params: params,
    },
    { errorMessageMode: 'message' },
  );
